import _fetch from './request'

// 获取学科列表
function getSubjectList(params) {

    return _fetch({
        url: '/subject/list',
        params
    });
}


function changeSubjectState(data) {
    return _fetch({
        url: '/subject/status',
        method: 'post',
        data
    });
}

function subjectAddApi(data) {
    return _fetch({
        url: '/subject/add',
        method: 'post',
        data
    });
}

function subjectRemove(data) {
    return _fetch({
        url: '/subject/remove',
        method: 'post',
        data
    });
    
}

function subjectEdit(data) {
    return _fetch({
        url: '/subject/edit',
        method: 'post',
        data
    });
}
export {getSubjectList, changeSubjectState, subjectAddApi, subjectRemove, subjectEdit}



